package com.yy.train.ticket.train.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yy.train.ticket.goout.StationSatio;
import com.yy.train.ticket.into.TtLine;
import com.yy.train.ticket.train.dao.TtLineLinkSectionDao;
import com.yy.train.ticket.train.entity.TtLineLinkSectionEntity;
import com.yy.train.ticket.train.service.TtLineLinkSectionService;
import com.yy.train.ticket.utils.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("ttLineLinkSectionService")
public class TtLineLinkSectionServiceImpl extends ServiceImpl<TtLineLinkSectionDao, TtLineLinkSectionEntity> implements TtLineLinkSectionService {

@Resource
    TtLineLinkSectionDao ttLineLinkSectionDao;
    @Override
    public R ratio(TtLine line) {
      List<StationSatio> list=  ttLineLinkSectionDao.ratio(line);
        return R.ok(list);
    }
}